package com.nuit.cxl.mybatistest.controller;

import com.nuit.cxl.mybatistest.Person;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @RequestMapping("/hello")
    public Person hello(String name) {
        System.out.println("name: " + name);
        Person person = new Person();
        person.setName(name);
        person.setAge(18);
        person.setId(1);
        return person;
    }
}




